package algorithms.sort;

public abstract class Sort {
	abstract public void sort(int[] arr);
	void exchange(int[] arr, int i, int j){
		int t = arr[i];
		arr[i] = arr[j];
		arr[j] = t;
	}
	
	static void test(Sort sort){
		//simple
		int[] a = {5,7,1,2,8,3,4,15,3,2,2,2,1};
		sort.sort(a);
		for(int i : a){
			System.out.print(i+" ");
		}
	}
}
